package com.da.mybatis.mapper;

import java.util.List;

import com.da.mybatis.bean.Student;
import com.da.mybatis.interceptor.UserPermissionAop;
import com.da.mybatis.param.StudentParam;
import org.springframework.stereotype.Repository;

@Repository
public interface StudentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    int count(StudentParam record);

    List<Student> selectList(StudentParam record);

    //@CanBeIntercept
    @UserPermissionAop
    List<Student> queryAll();
}